package com.xm.service.reception_desk;

import com.xm.dao.reception_desk.CommodityDetailsDao;
import com.xm.entity.CommodityDetails;

/**
 * 商品详情Service
 * @author 康文程
 * @date 2024-1-23
 */
public class CommodityDetailsService {
    private final CommodityDetailsDao dao = new CommodityDetailsDao();
    /**
     * 根据商品ID查询商品详情
     *
     * @param commodityId 商品ID
     * @return CommodityDetails 商品详情
     */
    public CommodityDetails getCommodityDetailsById(Integer commodityId) {
        return dao.getCommodityDetailsById(commodityId);
    }
}
